package com.sky.service.user.impl;

import com.sky.mapper.user.UCategoryMapper;
import com.sky.pojo.Category;
import com.sky.service.user.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userCategoryService")
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private UCategoryMapper uCategoryMapper;
    @Override
    public List<Category> list(Integer type) {
        List<Category> list = uCategoryMapper.list(type);
        return list;
    }
}
